//#include "gamestate.h"
#include <QApplication>
#include <QLocale>
#include <QTranslator>
#include "gamewindow.h"
#include "gameboard.h"

int game(int argc, char ** argv)
{
    QApplication a(argc, argv);
	QString locale = QLocale::system().name();
    // 加载语言翻译文件
	QTranslator translator;
	translator.load(QString("game5_") + locale);
	a.installTranslator(&translator);

    GameWindow mainWindow;
    //GameBoard mainWindow;
    //mainWindow.resize(534,534);
    mainWindow.show();
    return a.exec();
}

